body{
    width: 100vw;
    height: 100vh;
    display: grid;
    justify-content: center;
    align-items: center;
    grid-auto-flow: column;
    gap: 10px;
}
article{
    width: 400px;
    height: 400px;
    border: solid 1px black;
    overflow: hidden;
    section{
        width: 100%;
        height: 100%;
        display: grid;
        grid-template-rows: repeat(2,400px);
        transition-duration: 1s;
        .title{
            display: grid;
            grid-template-rows: repeat(2,1fr);
            h2,p{
                display: flex;
                justify-content: center;
                align-items: center;
            }
            h2{
                background-color: burlywood;
            }
            p{
                background-color: cornflowerblue;
            }
        }
        &:hover{
            transform: translateY(-400px);
        }
    }

}